'''
Created on Apr 26, 2012

@author: lavang
'''
import unittest


# button 'go to announcement'
def xpathBtnGoToAnnouncement():
    return "//img[@alt='Go to announcements page']"

# txt announcement title
def xpathTxtAnnouncementTitle():
    return "//input[@name='title']"

# link add announcement
def xpathLinkAddAnnouncement():
    return "//a[contains(text(),'Add announcement')]"

# chk create calendar event
def nameChkCalendarEvent():
    return "calendar"

# chk send notification
def nameChkSendNotification():
    return "email"

# Cbb start day,month,year,hour, minute
def nameCbbStartDay():
    return "timestamp[d]"
def nameCbbStartMonth():
    return "timestamp[M]"
def nameCbbStartYear():
    return "timestamp[Y]"
def nameCbbStartHour():
    return "timestamp[H]"
def nameCbbStartMin():
    return "timestamp[i]"

# Cbb expire d,M,y,H,minute
def nameCbbExpireDay():
    return "expire[d]"
def nameCbbExpireMonth():
    return "expire[M]"
def nameCbbExpireYear():
    return "expire[Y]"
def nameCbbExpireHour():
    return "expire[H]"
def nameCbbExpireMin():
    return "expire[i]"

# btn submit
def xpathBtnSubmit():
    return "//input[@name='submit']"

# icon Edit
def xpathIconEdit(announcementName):
    return "//td[text()='"+announcementName+"']/../td[5]/a/img"

#txt filter
def xpathTxtFilter():
    return "//input[@id='0_sortedTable_filter']"